package com.ihr360.oneclick.controller;

import com.ihr360.oneclick.service.CompanyFreeMessageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(description = "获取公司短信接口", produces = ("application/json;charset=UTF-8"))
public class CompanyFreeMessageController {

    @Autowired
    private CompanyFreeMessageService companyFreeMessageService;


    @GetMapping("/getCompanyFreeSMSCount")
    @ApiOperation(value = "/updateSpreadsheetRowInfo", httpMethod = "GET", notes = "获取公司免费短信条数",
            consumes = "application/json;charset=UTF-8", produces = "application/json;charset=UTF-8")
    public Integer getCompanyFreeSMSCount(@RequestParam String companyId) {
        return companyFreeMessageService.getCompanyFreeMessageCount(companyId);
    }
}
